package com.etc.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;
/**
 * @program: RookieSocialNetworking
 * @description: 动态的实体类
 * @author: Mr.单
 * @create: 2020-08-15 07:43
 **/
//@Component
@Data
public class News {
    private Integer newsId;
    private String newsDetail;
    private String newsTime;
    private String newsAdd;
    private Integer newsStatus;
    private User user;
    private  int userId;
    public News(Integer newsId, String newsDetail, String newsTime, String newsAdd, Integer newsStatus, User user) {
        this.newsId = newsId;
        this.newsDetail = newsDetail;
        this.newsTime = newsTime;
        this.newsAdd = newsAdd;
        this.newsStatus = newsStatus;
        this.user = user;
    }

    public News(String newsDetail, String newsAdd, int userId) {
        this.newsDetail = newsDetail;
        this.newsAdd = newsAdd;
        this.userId = userId;
    }

    public News(String newsDetail, String newsTime, String newsAdd, Integer newsStatus, int userId) {
        this.newsDetail = newsDetail;
        this.newsTime = newsTime;
        this.newsAdd = newsAdd;
        this.newsStatus = newsStatus;
        this.userId = userId;
    }

    public News(String newsDetail, String newsTime, String newsAdd, Integer newsStatus, User user) {
        this.newsDetail = newsDetail;
        this.newsTime = newsTime;
        this.newsAdd = newsAdd;
        this.newsStatus = newsStatus;
        this.user = user;
    }

    public News() {
    }
}
